package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.ShopImgsMapper;
import com.ruoyi.business.domain.ShopImgs;
import com.ruoyi.business.service.IShopImgsService;

/**
 * 店铺图片Service业务层处理
 * 
 * @author zsq
 * @date 2024-09-12
 */
@Service
public class ShopImgsServiceImpl implements IShopImgsService 
{
    @Autowired
    private ShopImgsMapper shopImgsMapper;

    /**
     * 查询店铺图片
     * 
     * @param id 店铺图片主键
     * @return 店铺图片
     */
    @Override
    public ShopImgs selectShopImgsById(Long id)
    {
        return shopImgsMapper.selectShopImgsById(id);
    }

    /**
     * 查询店铺图片列表
     * 
     * @param shopImgs 店铺图片
     * @return 店铺图片
     */
    @Override
    public List<ShopImgs> selectShopImgsList(ShopImgs shopImgs)
    {
        return shopImgsMapper.selectShopImgsList(shopImgs);
    }

    /**
     * 新增店铺图片
     * 
     * @param shopImgs 店铺图片
     * @return 结果
     */
    @Override
    public int insertShopImgs(ShopImgs shopImgs)
    {
        return shopImgsMapper.insertShopImgs(shopImgs);
    }

    /**
     * 修改店铺图片
     * 
     * @param shopImgs 店铺图片
     * @return 结果
     */
    @Override
    public int updateShopImgs(ShopImgs shopImgs)
    {
        return shopImgsMapper.updateShopImgs(shopImgs);
    }

    /**
     * 批量删除店铺图片
     * 
     * @param ids 需要删除的店铺图片主键
     * @return 结果
     */
    @Override
    public int deleteShopImgsByIds(Long[] ids)
    {
        return shopImgsMapper.deleteShopImgsByIds(ids);
    }

    /**
     * 删除店铺图片信息
     * 
     * @param id 店铺图片主键
     * @return 结果
     */
    @Override
    public int deleteShopImgsById(Long id)
    {
        return shopImgsMapper.deleteShopImgsById(id);
    }
}
